using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class PickBottleResponse : GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<PickBottleResponse, PickBottleResponse.Builder>
		{
			private bool resultIsReadOnly;
			private PickBottleResponse result;
			protected override PickBottleResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override PickBottleResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override PickBottleResponse DefaultInstanceForType
			{
				get
				{
					return PickBottleResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public int BottleType
			{
				get
				{
					return this.result.BottleType;
				}
				set
				{
					this.SetBottleType(value);
				}
			}
			public int MsgType
			{
				get
				{
					return this.result.MsgType;
				}
				set
				{
					this.SetMsgType(value);
				}
			}
			public string BottleInfo
			{
				get
				{
					return this.result.BottleInfo;
				}
				set
				{
					this.SetBottleInfo(value);
				}
			}
			public string UserInfo
			{
				get
				{
					return this.result.UserInfo;
				}
				set
				{
					this.SetUserInfo(value);
				}
			}
			public string NickName
			{
				get
				{
					return this.result.NickName;
				}
				set
				{
					this.SetNickName(value);
				}
			}
			public uint UserStatus
			{
				get
				{
					return this.result.UserStatus;
				}
				set
				{
					this.SetUserStatus(value);
				}
			}
			public int ThrowCount
			{
				get
				{
					return this.result.ThrowCount;
				}
				set
				{
					this.SetThrowCount(value);
				}
			}
			public int PickCount
			{
				get
				{
					return this.result.PickCount;
				}
				set
				{
					this.SetPickCount(value);
				}
			}
			public int Distance
			{
				get
				{
					return this.result.Distance;
				}
				set
				{
					this.SetDistance(value);
				}
			}
			public Builder()
			{
				this.result = PickBottleResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(PickBottleResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private PickBottleResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					PickBottleResponse other = this.result;
					this.result = new PickBottleResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override PickBottleResponse.Builder Clear()
			{
				this.result = PickBottleResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override PickBottleResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new PickBottleResponse.Builder(this.result);
				}
				return new PickBottleResponse.Builder().MergeFrom(this.result);
			}
			public override PickBottleResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override PickBottleResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is PickBottleResponse)
				{
					return this.MergeFrom((PickBottleResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override PickBottleResponse.Builder MergeFrom(PickBottleResponse other)
			{
				return this;
			}
			public override PickBottleResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override PickBottleResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(PickBottleResponse._pickBottleResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = PickBottleResponse._pickBottleResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 34u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseResponse.Builder builder = BaseResponse.CreateBuilder();
								if (this.result.hasBaseResponse)
								{
									builder.MergeFrom(this.BaseResponse);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseResponse = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasBottleType = input.ReadInt32(ref this.result.bottleType_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasMsgType = input.ReadInt32(ref this.result.msgType_);
								continue;
							}
							if (num3 == 34u)
							{
								this.result.hasBottleInfo = input.ReadString(ref this.result.bottleInfo_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 56u)
						{
							if (num3 == 42u)
							{
								this.result.hasUserInfo = input.ReadString(ref this.result.userInfo_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasNickName = input.ReadString(ref this.result.nickName_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasUserStatus = input.ReadUInt32(ref this.result.userStatus_);
								continue;
							}
						}
						else
						{
							if (num3 == 64u)
							{
								this.result.hasThrowCount = input.ReadInt32(ref this.result.throwCount_);
								continue;
							}
							if (num3 == 72u)
							{
								this.result.hasPickCount = input.ReadInt32(ref this.result.pickCount_);
								continue;
							}
							if (num3 == 80u)
							{
								this.result.hasDistance = input.ReadInt32(ref this.result.distance_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public PickBottleResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public PickBottleResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public PickBottleResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public PickBottleResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public PickBottleResponse.Builder SetBottleType(int value)
			{
				this.PrepareBuilder();
				this.result.hasBottleType = true;
				this.result.bottleType_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearBottleType()
			{
				this.PrepareBuilder();
				this.result.hasBottleType = false;
				this.result.bottleType_ = 0;
				return this;
			}
			public PickBottleResponse.Builder SetMsgType(int value)
			{
				this.PrepareBuilder();
				this.result.hasMsgType = true;
				this.result.msgType_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearMsgType()
			{
				this.PrepareBuilder();
				this.result.hasMsgType = false;
				this.result.msgType_ = 0;
				return this;
			}
			public PickBottleResponse.Builder SetBottleInfo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBottleInfo = true;
				this.result.bottleInfo_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearBottleInfo()
			{
				this.PrepareBuilder();
				this.result.hasBottleInfo = false;
				this.result.bottleInfo_ = "";
				return this;
			}
			public PickBottleResponse.Builder SetUserInfo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserInfo = true;
				this.result.userInfo_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearUserInfo()
			{
				this.PrepareBuilder();
				this.result.hasUserInfo = false;
				this.result.userInfo_ = "";
				return this;
			}
			public PickBottleResponse.Builder SetNickName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasNickName = true;
				this.result.nickName_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearNickName()
			{
				this.PrepareBuilder();
				this.result.hasNickName = false;
				this.result.nickName_ = "";
				return this;
			}
			public PickBottleResponse.Builder SetUserStatus(uint value)
			{
				this.PrepareBuilder();
				this.result.hasUserStatus = true;
				this.result.userStatus_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearUserStatus()
			{
				this.PrepareBuilder();
				this.result.hasUserStatus = false;
				this.result.userStatus_ = 0u;
				return this;
			}
			public PickBottleResponse.Builder SetThrowCount(int value)
			{
				this.PrepareBuilder();
				this.result.hasThrowCount = true;
				this.result.throwCount_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearThrowCount()
			{
				this.PrepareBuilder();
				this.result.hasThrowCount = false;
				this.result.throwCount_ = 0;
				return this;
			}
			public PickBottleResponse.Builder SetPickCount(int value)
			{
				this.PrepareBuilder();
				this.result.hasPickCount = true;
				this.result.pickCount_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearPickCount()
			{
				this.PrepareBuilder();
				this.result.hasPickCount = false;
				this.result.pickCount_ = 0;
				return this;
			}
			public PickBottleResponse.Builder SetDistance(int value)
			{
				this.PrepareBuilder();
				this.result.hasDistance = true;
				this.result.distance_ = value;
				return this;
			}
			public PickBottleResponse.Builder ClearDistance()
			{
				this.PrepareBuilder();
				this.result.hasDistance = false;
				this.result.distance_ = 0;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int BottleTypeFieldNumber = 2;
		public const int MsgTypeFieldNumber = 3;
		public const int BottleInfoFieldNumber = 4;
		public const int UserInfoFieldNumber = 5;
		public const int NickNameFieldNumber = 6;
		public const int UserStatusFieldNumber = 7;
		public const int ThrowCountFieldNumber = 8;
		public const int PickCountFieldNumber = 9;
		public const int DistanceFieldNumber = 10;
		private static readonly PickBottleResponse defaultInstance;
		private static readonly string[] _pickBottleResponseFieldNames;
		private static readonly uint[] _pickBottleResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasBottleType;
		private int bottleType_;
		private bool hasMsgType;
		private int msgType_;
		private bool hasBottleInfo;
		private string bottleInfo_ = "";
		private bool hasUserInfo;
		private string userInfo_ = "";
		private bool hasNickName;
		private string nickName_ = "";
		private bool hasUserStatus;
		private uint userStatus_;
		private bool hasThrowCount;
		private int throwCount_;
		private bool hasPickCount;
		private int pickCount_;
		private bool hasDistance;
		private int distance_;
		private int memoizedSerializedSize = -1;
		public static PickBottleResponse DefaultInstance
		{
			get
			{
				return PickBottleResponse.defaultInstance;
			}
		}
		public override PickBottleResponse DefaultInstanceForType
		{
			get
			{
				return PickBottleResponse.DefaultInstance;
			}
		}
		protected override PickBottleResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public int BottleType
		{
			get
			{
				return this.bottleType_;
			}
		}
		public int MsgType
		{
			get
			{
				return this.msgType_;
			}
		}
		public string BottleInfo
		{
			get
			{
				return this.bottleInfo_;
			}
		}
		public string UserInfo
		{
			get
			{
				return this.userInfo_;
			}
		}
		public string NickName
		{
			get
			{
				return this.nickName_;
			}
		}
		public uint UserStatus
		{
			get
			{
				return this.userStatus_;
			}
		}
		public int ThrowCount
		{
			get
			{
				return this.throwCount_;
			}
		}
		public int PickCount
		{
			get
			{
				return this.pickCount_;
			}
		}
		public int Distance
		{
			get
			{
				return this.distance_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasBottleType && this.hasMsgType && this.hasUserStatus && this.hasThrowCount && this.hasPickCount && this.hasDistance && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasBottleType)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.BottleType);
				}
				if (this.hasMsgType)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.MsgType);
				}
				if (this.hasBottleInfo)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.BottleInfo);
				}
				if (this.hasUserInfo)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.UserInfo);
				}
				if (this.hasNickName)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.NickName);
				}
				if (this.hasUserStatus)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.UserStatus);
				}
				if (this.hasThrowCount)
				{
					num += CodedOutputStream.ComputeInt32Size(8, this.ThrowCount);
				}
				if (this.hasPickCount)
				{
					num += CodedOutputStream.ComputeInt32Size(9, this.PickCount);
				}
				if (this.hasDistance)
				{
					num += CodedOutputStream.ComputeInt32Size(10, this.Distance);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private PickBottleResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] pickBottleResponseFieldNames = PickBottleResponse._pickBottleResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, pickBottleResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasBottleType)
			{
				output.WriteInt32(2, pickBottleResponseFieldNames[2], this.BottleType);
			}
			if (this.hasMsgType)
			{
				output.WriteInt32(3, pickBottleResponseFieldNames[4], this.MsgType);
			}
			if (this.hasBottleInfo)
			{
				output.WriteString(4, pickBottleResponseFieldNames[1], this.BottleInfo);
			}
			if (this.hasUserInfo)
			{
				output.WriteString(5, pickBottleResponseFieldNames[8], this.UserInfo);
			}
			if (this.hasNickName)
			{
				output.WriteString(6, pickBottleResponseFieldNames[5], this.NickName);
			}
			if (this.hasUserStatus)
			{
				output.WriteUInt32(7, pickBottleResponseFieldNames[9], this.UserStatus);
			}
			if (this.hasThrowCount)
			{
				output.WriteInt32(8, pickBottleResponseFieldNames[7], this.ThrowCount);
			}
			if (this.hasPickCount)
			{
				output.WriteInt32(9, pickBottleResponseFieldNames[6], this.PickCount);
			}
			if (this.hasDistance)
			{
				output.WriteInt32(10, pickBottleResponseFieldNames[3], this.Distance);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasBottleType)
			{
				num ^= this.bottleType_.GetHashCode();
			}
			if (this.hasMsgType)
			{
				num ^= this.msgType_.GetHashCode();
			}
			if (this.hasBottleInfo)
			{
				num ^= this.bottleInfo_.GetHashCode();
			}
			if (this.hasUserInfo)
			{
				num ^= this.userInfo_.GetHashCode();
			}
			if (this.hasNickName)
			{
				num ^= this.nickName_.GetHashCode();
			}
			if (this.hasUserStatus)
			{
				num ^= this.userStatus_.GetHashCode();
			}
			if (this.hasThrowCount)
			{
				num ^= this.throwCount_.GetHashCode();
			}
			if (this.hasPickCount)
			{
				num ^= this.pickCount_.GetHashCode();
			}
			if (this.hasDistance)
			{
				num ^= this.distance_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			PickBottleResponse pickBottleResponse = value as PickBottleResponse;
			return pickBottleResponse != null && (this.hasBaseResponse == pickBottleResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(pickBottleResponse.baseResponse_))) && (this.hasBottleType == pickBottleResponse.hasBottleType && (!this.hasBottleType || this.bottleType_.Equals(pickBottleResponse.bottleType_))) && (this.hasMsgType == pickBottleResponse.hasMsgType && (!this.hasMsgType || this.msgType_.Equals(pickBottleResponse.msgType_))) && (this.hasBottleInfo == pickBottleResponse.hasBottleInfo && (!this.hasBottleInfo || this.bottleInfo_.Equals(pickBottleResponse.bottleInfo_))) && (this.hasUserInfo == pickBottleResponse.hasUserInfo && (!this.hasUserInfo || this.userInfo_.Equals(pickBottleResponse.userInfo_))) && (this.hasNickName == pickBottleResponse.hasNickName && (!this.hasNickName || this.nickName_.Equals(pickBottleResponse.nickName_))) && (this.hasUserStatus == pickBottleResponse.hasUserStatus && (!this.hasUserStatus || this.userStatus_.Equals(pickBottleResponse.userStatus_))) && (this.hasThrowCount == pickBottleResponse.hasThrowCount && (!this.hasThrowCount || this.throwCount_.Equals(pickBottleResponse.throwCount_))) && (this.hasPickCount == pickBottleResponse.hasPickCount && (!this.hasPickCount || this.pickCount_.Equals(pickBottleResponse.pickCount_))) && (this.hasDistance == pickBottleResponse.hasDistance && (!this.hasDistance || this.distance_.Equals(pickBottleResponse.distance_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("BottleType", this.hasBottleType, this.bottleType_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("MsgType", this.hasMsgType, this.msgType_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("BottleInfo", this.hasBottleInfo, this.bottleInfo_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("UserInfo", this.hasUserInfo, this.userInfo_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("NickName", this.hasNickName, this.nickName_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("UserStatus", this.hasUserStatus, this.userStatus_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("ThrowCount", this.hasThrowCount, this.throwCount_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("PickCount", this.hasPickCount, this.pickCount_, writer);
			GeneratedMessageLite<PickBottleResponse, PickBottleResponse.Builder>.PrintField("Distance", this.hasDistance, this.distance_, writer);
		}
		public static PickBottleResponse ParseFrom(byte[] data)
		{
			return PickBottleResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private PickBottleResponse MakeReadOnly()
		{
			return this;
		}
		public static PickBottleResponse.Builder CreateBuilder()
		{
			return new PickBottleResponse.Builder();
		}
		public override PickBottleResponse.Builder ToBuilder()
		{
			return PickBottleResponse.CreateBuilder(this);
		}
		public override PickBottleResponse.Builder CreateBuilderForType()
		{
			return new PickBottleResponse.Builder();
		}
		public static PickBottleResponse.Builder CreateBuilder(PickBottleResponse prototype)
		{
			return new PickBottleResponse.Builder(prototype);
		}
		static PickBottleResponse()
		{
			PickBottleResponse.defaultInstance = new PickBottleResponse().MakeReadOnly();
			PickBottleResponse._pickBottleResponseFieldNames = new string[]
			{
				"BaseResponse",
				"BottleInfo",
				"BottleType",
				"Distance",
				"MsgType",
				"NickName",
				"PickCount",
				"ThrowCount",
				"UserInfo",
				"UserStatus"
			};
			PickBottleResponse._pickBottleResponseFieldTags = new uint[]
			{
				10u,
				34u,
				16u,
				80u,
				24u,
				50u,
				72u,
				64u,
				42u,
				56u
			};
			object.ReferenceEquals(micromsg.Proto.PickBottleResponse.Descriptor, null);
		}
	}
}
